﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Card.Web.Controls
{
    public partial class Header : UserControlBasePage
    {
        private int _linkIndex = 1;
        public int LinkIndex
        {
            get
            {
                return _linkIndex;
            }
            set
            {
                _linkIndex = value;
            }
        }

        public bool EnableChangeCity
        {
            get
            {
                return this.logo.EnableChangeCity;
            }
            set
            {
                this.logo.EnableChangeCity = value;
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public string GetCss(int linkIndex)
        {
            return _linkIndex == linkIndex ? "select" : string.Empty;
        }
    }
}